package org.example.preparelessons.service.impl;

import org.example.preparelessons.bean.User;
import org.example.preparelessons.mapper.UserMapper;
import org.example.preparelessons.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service("UserService")
public class UserServiceImpl implements UserService {
    @Autowired
    UserMapper userMapper;
    @Override
    public User getByUserNameAndPassword(User user) {
        return userMapper.getByUserNameAndPassword(user);
    }
}
